package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 排行榜对象 cp_ranking
 * 
 * @author zhangjinlei
 * @date 2022-05-24
 */
public class CpRanking extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 名次 */
    private Long ranking;

    /** 国家 */
    @Excel(name = "国家")
    private String country;

    /** 金牌 */
    @Excel(name = "金牌")
    private Long goldMedal;

    /** 银牌 */
    @Excel(name = "银牌")
    private Long silverMedal;

    /** 铜牌 */
    @Excel(name = "铜牌")
    private Long bronze;

    /** 总数 */
    @Excel(name = "总数")
    private Long sum;

    /** 标签 ：1-亚洲，2-非洲，3-欧洲，4-大洋洲，5-南美洲，6-北美洲，7-南极洲 */
    @Excel(name = "标签 ：1-亚洲，2-非洲，3-欧洲，4-大洋洲，5-南美洲，6-北美洲，7-南极洲")
    private Long tag;

    /** 逻辑删除字段 0 正常 1 已删除 */
    private Integer isDeleted;

    /** 创建人ID */
    private Long createUserid;

    /** 创建人姓名 */
    private String createUsername;

    /** 创建时间-数据库操作时间 */
    private Date createTimeDb;

    /** 服务器IP */
    private String serverIp;

    /** 最后修改人ID */
    private Long updateUserid;

    /** 最后修改人姓名 */
    private String updateUsername;

    /** 最后修改时间-数据库默认写入时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后修改时间-数据库默认写入时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateTimeDb;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setRanking(Long ranking) 
    {
        this.ranking = ranking;
    }

    public Long getRanking() 
    {
        return ranking;
    }
    public void setCountry(String country) 
    {
        this.country = country;
    }

    public String getCountry() 
    {
        return country;
    }
    public void setGoldMedal(Long goldMedal) 
    {
        this.goldMedal = goldMedal;
    }

    public Long getGoldMedal() 
    {
        return goldMedal;
    }
    public void setSilverMedal(Long silverMedal) 
    {
        this.silverMedal = silverMedal;
    }

    public Long getSilverMedal() 
    {
        return silverMedal;
    }
    public void setBronze(Long bronze) 
    {
        this.bronze = bronze;
    }

    public Long getBronze() 
    {
        return bronze;
    }
    public void setSum(Long sum) 
    {
        this.sum = sum;
    }

    public Long getSum() 
    {
        return sum;
    }
    public void setTag(Long tag) 
    {
        this.tag = tag;
    }

    public Long getTag() 
    {
        return tag;
    }
    public void setIsDeleted(Integer isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted() 
    {
        return isDeleted;
    }
    public void setCreateUserid(Long createUserid) 
    {
        this.createUserid = createUserid;
    }

    public Long getCreateUserid() 
    {
        return createUserid;
    }
    public void setCreateUsername(String createUsername) 
    {
        this.createUsername = createUsername;
    }

    public String getCreateUsername() 
    {
        return createUsername;
    }
    public void setCreateTimeDb(Date createTimeDb) 
    {
        this.createTimeDb = createTimeDb;
    }

    public Date getCreateTimeDb() 
    {
        return createTimeDb;
    }
    public void setServerIp(String serverIp) 
    {
        this.serverIp = serverIp;
    }

    public String getServerIp() 
    {
        return serverIp;
    }
    public void setUpdateUserid(Long updateUserid) 
    {
        this.updateUserid = updateUserid;
    }

    public Long getUpdateUserid() 
    {
        return updateUserid;
    }
    public void setUpdateUsername(String updateUsername) 
    {
        this.updateUsername = updateUsername;
    }

    public String getUpdateUsername() 
    {
        return updateUsername;
    }
    public void setUpdateTimeDb(Date updateTimeDb) 
    {
        this.updateTimeDb = updateTimeDb;
    }

    public Date getUpdateTimeDb() 
    {
        return updateTimeDb;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("ranking", getRanking())
            .append("country", getCountry())
            .append("goldMedal", getGoldMedal())
            .append("silverMedal", getSilverMedal())
            .append("bronze", getBronze())
            .append("sum", getSum())
            .append("tag", getTag())
            .append("isDeleted", getIsDeleted())
            .append("createUserid", getCreateUserid())
            .append("createUsername", getCreateUsername())
            .append("createTime", getCreateTime())
            .append("createTimeDb", getCreateTimeDb())
            .append("serverIp", getServerIp())
            .append("updateUserid", getUpdateUserid())
            .append("updateUsername", getUpdateUsername())
            .append("updateTime", getUpdateTime())
            .append("updateTimeDb", getUpdateTimeDb())
            .toString();
    }
}
